﻿/*
 * Preference.cs
 * 
 * Purpose:
 * Provides a data structure for storing a user preference setting and serializing it for persistence.
 * 
 * Revision Log:
 * 08-SEP-12, C. Bush, First Draft.
 */

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Air_Trafic_Control.Domain.Entity
{
    public class Preference
    {
        private string name = "";
        private string value = "";

        /// <summary>
        /// Parameterless constructor required for serialization.
        /// </summary>
        public Preference()
        {
        }

        /// <summary>
        /// Accessor and mutator for the name of this setting.
        /// </summary>
        public string Name
        {
            get
            {
                return this.name;
            }
            set
            {
                this.name = value;
            }
        }

        /// <summary>
        /// Accessor and mutator for the value of this setting.
        /// </summary>
        public string Value
        {
            get
            {
                return this.value;
            }
            set
            {
                this.value = value;
            }
        }
    }
}
